home *** CD-ROM | disk | FTP | other *** search
- class Path extends MovieClip
- {
- var engine;
- var _positions;
- var pos;
- function Path()
- {
- super();
- this._visible = false;
- }
- function init(e)
- {
- this.engine = e;
- this._positions = [];
- var _loc2_ = 1;
- while(_loc2_ <= this._totalframes)
- {
- this.gotoAndStop(_loc2_);
- this._positions[_loc2_] = new flash.geom.Point(this.pos._x,this.pos._y);
- _loc2_ = _loc2_ + 1;
- }
- }
- function getPositionAtFrame(n, scope)
- {
- var _loc2_ = this._positions[n].clone();
- scope = !scope ? this.engine : scope;
- this.localToGlobal(_loc2_);
- scope.globalToLocal(_loc2_);
- return _loc2_;
- }
- function get length()
- {
- return this._positions.length - 1;
- }
- }
-